package com.isdepci.project.gasEmission.domain;

import com.isdepci.framework.aspectj.lang.annotation.Excel;
import com.isdepci.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import java.math.BigDecimal;

/**
 * 能源购买对象 tpf_purchased_energy
 *
 * @author isdepci
 * @date 2023-09-01
 */
public class PurchasedEnergy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 能源类型(1电力/2热力/3冷力) */
    @Excel(name = "能源类型(1电力/2热力/3冷力)")
    private Integer energyType;

    /** 年消耗量（MWh） */
    @Excel(name = "年消耗量", readConverterExp = "M=Wh")
    private BigDecimal quantityPerYear;

    /** 技术和地区 */
    @Excel(name = "技术和地区")
    private String technologyAndRegion;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 关联首页表 */
    @Excel(name = "关联首页表")
    private Long infoId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEnergyType(Integer energyType)
    {
        this.energyType = energyType;
    }

    public Integer getEnergyType()
    {
        return energyType;
    }
    public void setQuantityPerYear(BigDecimal quantityPerYear)
    {
        this.quantityPerYear = quantityPerYear;
    }

    public BigDecimal getQuantityPerYear()
    {
        return quantityPerYear;
    }
    public void setTechnologyAndRegion(String technologyAndRegion)
    {
        this.technologyAndRegion = technologyAndRegion;
    }

    public String getTechnologyAndRegion()
    {
        return technologyAndRegion;
    }
    public void setInfoId(Long infoId)
    {
        this.infoId = infoId;
    }

    public Long getInfoId()
    {
        return infoId;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("energyType", getEnergyType())
            .append("quantityPerYear", getQuantityPerYear())
            .append("technologyAndRegion", getTechnologyAndRegion())
            .append("infoId", getInfoId())
            .toString();
    }
}
